<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
	pageEncoding="ISO-8859-1"%>
<%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="description" content="">
<meta name="author" content="Mosaddek">
<meta name="keyword"
	content="FlatLab, Dashboard, Bootstrap, Admin, Template, Theme, Responsive, Fluid, Retina">
<link rel="shortcut icon" href="img/favicon.png">

<title>LAPS</title>

<!-- Bootstrap core CSS -->
<link href="<c:url value="/resources/css/bootstrap.min.css"></c:url>"
	rel="stylesheet">
<link href="<c:url value="/resources/css/bootstrap-reset.css"></c:url>"
	rel="stylesheet">
<!--external css-->
<link
	href="<c:url value="/resources/assets/font-awesome/css/font-awesome.css"></c:url>"
	rel="stylesheet" />
<!-- Custom styles for this template -->
<link href="<c:url value="/resources/css/style.css"></c:url>"
	rel="stylesheet">
<link href="<c:url value="/resources/css/style-responsive.css"></c:url>"
	rel="stylesheet" />
<!-- HTML5 shim and Respond.js IE8 support of HTML5 tooltipss and media queries -->
<!--[if lt IE 9]>
    <script src="js/html5shiv.js"></script>
    <script src="js/respond.min.js"></script>
    <![endif]-->
</head>
<body class="login-body">
	<div class="container">
		<form class="form-signin"
			action="${pageContext.request.contextPath }/login" method="post">
			<h2 class="form-signin-heading">sign in now</h2>
			<div class="login-wrap">
				<input type="text" id="txtLoginID" name="loginid"
					class="form-control" placeholder="User ID" autofocus> <input
					id="txtPwd" type="password" name="password" class="form-control"
					placeholder="Password"> <label class="checkbox"> <input
					type="checkbox" id="chkRemember" value="true" name="remember"> Remember me 
				</label>
				<button class="btn btn-lg btn-login btn-block" type="submit">Sign
					in</button>
			</div>
		</form>
	</div>
	<script>
		function getCookie(c_name) {
			var c_value = document.cookie;
			var c_start = c_value.indexOf(" " + c_name + "=");
			if (c_start == -1) {
				c_start = c_value.indexOf(c_name + "=");
			}
			if (c_start == -1) {
				c_value = null;
			} else {
				c_start = c_value.indexOf("=", c_start) + 1;
				var c_end = c_value.indexOf(";", c_start);
				if (c_end == -1) {
					c_end = c_value.length;
				}
				c_value = unescape(c_value.substring(c_start, c_end));
			}
			return c_value;
		}
		document.getElementById("txtLoginID").value = getCookie("laps_loginid");
		document.getElementById("txtPwd").value = getCookie("laps_password");
		document.getElementById("chkRemember").checked=true;
	</script>
</body>
</html>